import request from '../js/request.js'

export function addPost(data){
    return request({
        url:'/app/post/add',
        method:'post',
        data:data
    })
}

export function updatePost(data){
    return request({
        url:'/app/post/update',
        method:'put',
        data:data
    })
}

export function PostList(queryForm){
    return request({
        url:'/app/post/list',
        method:'get',
		params:queryForm
    })
}

export function PostCount(userId){
    return request({
        url:'/app/post/selectPostCount?userId=' + userId,
        method:'get'
    })
}

export function PostInfo(id){
    return request({
        url:'/app/post/' + id,
        method:'get'
    })
}